package com.topnav.mc.system;

import com.js.lib.utils.DateUtils;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: kenny
 * @Date: 2023/10/10 14:09
 */
@Data
@Accessors(chain = true)
public class CpuUsedBean implements Serializable {
    private String time = DateUtils.format(new Date(),"HH:mm:ss");//.substring(3,8);
    private Double used=1.00;
    private Double free=99.00;

    public CpuUsedBean(Double cpuUsedRate, Double cpuIdleRate) {
        this.used = cpuUsedRate;
        this.free = cpuIdleRate;
    }

}
